package llama.ctrl;

import llama.core.ChatModelLocator;
import llama.core.SearchTerm;
import llama.network.NetworkMessage;
import llama.network.NetworkMessage.Type;

public class SearchUserCtrl implements IController {
	private SearchTerm search;
	
	@Override
	public void execute() {
		ChatModelLocator.getChatModel().send(new NetworkMessage(search, Type.SEARCH_TERM));
	}

	public void setTerm(SearchTerm search) {
		this.search = search;
	}
}
